Hi, firstly thanks for the tutorials I've found them very useful.
I would appreciate your advice on what to use to generate interactive charts on a Django website.
The experimental data occasionally includes errors. As part of the analysis I graph all the data and then select individual points which are outliers and exclude them from the analysis.
To make this easier I would like the chart to show the data on a scatter chart and the user can then easily select the erroneous points and by clicking on them exclude them from the analysis by moving them to a second dataset which will just show the excluded points on the same chart. Obviously to carry out the analysis I also need to connect to the database model and update it again afterwards.
There seems to be a few options to do this, but Django documentation provides no obvious method for generating charts. I've managed to get it partially working with Google Charts api, but before I spend too long going down this path I wondered if there was a better solution?
PS. the reason I'm using Django rather than just Python is a) it gives colleagues at different sites the ability to see and use the data and b) it gives me an excuse to learn Django on something other than a blog.
Thanks
You must be logged in to post. Please login or register an account.
When it comes to embedding charts in web apps, you will almost always just use some javascript plugin.
One I like is highcharts, that's what I use on sentdex.com for graphs.
Another one that's super simple, and lets you code charts in pure Python, is pygal. I use pygal on ensmo.com
I did a pygal with flask tutorial here: https://pythonprogramming.net/pygal-tutorial/
Even though you're using Django, you can still use the same principles to make it happen, since it's mostly pygal coding, and then you embed via jinja.
Good luck!
-Harrison 8 years ago
You must be logged in to post. Please login or register an account.
Thanks, I'll give that a try.
-ottotentacle 8 years ago
You must be logged in to post. Please login or register an account.